package com.ruoyi.boss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boss.mapper.PhonePermBlacklistMapper;
import com.ruoyi.boss.domain.PhonePermBlacklist;
import com.ruoyi.boss.service.IPhonePermBlacklistService;

/**
 * 手机号永久黑名单Service业务层处理
 * 
 * @author rui
 * @date 2025-08-18
 */
@Service
public class PhonePermBlacklistServiceImpl implements IPhonePermBlacklistService 
{
    @Autowired
    private PhonePermBlacklistMapper phonePermBlacklistMapper;

    /**
     * 查询手机号永久黑名单
     * 
     * @param id 手机号永久黑名单主键
     * @return 手机号永久黑名单
     */
    @Override
    public PhonePermBlacklist selectPhonePermBlacklistById(Long id)
    {
        return phonePermBlacklistMapper.selectPhonePermBlacklistById(id);
    }

    /**
     * 查询手机号永久黑名单列表
     * 
     * @param phonePermBlacklist 手机号永久黑名单
     * @return 手机号永久黑名单
     */
    @Override
    public List<PhonePermBlacklist> selectPhonePermBlacklistList(PhonePermBlacklist phonePermBlacklist)
    {
        return phonePermBlacklistMapper.selectPhonePermBlacklistList(phonePermBlacklist);
    }

    /**
     * 新增手机号永久黑名单
     * 
     * @param phonePermBlacklist 手机号永久黑名单
     * @return 结果
     */
    @Override
    public int insertPhonePermBlacklist(PhonePermBlacklist phonePermBlacklist)
    {
        return phonePermBlacklistMapper.insertPhonePermBlacklist(phonePermBlacklist);
    }

    /**
     * 修改手机号永久黑名单
     * 
     * @param phonePermBlacklist 手机号永久黑名单
     * @return 结果
     */
    @Override
    public int updatePhonePermBlacklist(PhonePermBlacklist phonePermBlacklist)
    {
        return phonePermBlacklistMapper.updatePhonePermBlacklist(phonePermBlacklist);
    }

    /**
     * 批量删除手机号永久黑名单
     * 
     * @param ids 需要删除的手机号永久黑名单主键
     * @return 结果
     */
    @Override
    public int deletePhonePermBlacklistByIds(Long[] ids)
    {
        return phonePermBlacklistMapper.deletePhonePermBlacklistByIds(ids);
    }

    /**
     * 删除手机号永久黑名单信息
     * 
     * @param id 手机号永久黑名单主键
     * @return 结果
     */
    @Override
    public int deletePhonePermBlacklistById(Long id)
    {
        return phonePermBlacklistMapper.deletePhonePermBlacklistById(id);
    }
}
